import { post, get } from "@/utils/http";

// 路径枚举
enum Api {
  Login = "/login",
  Status = "/status",
}

// 定义登录接口参数类型
interface LoginParams {
  username: string;
  password: string;
}

// 登录接口
function loginApi(data: LoginParams): Promise<any> {
  return post(Api.Login, data);
}


export { loginApi};
